<#include "/includes/header.ftl">

<#if coupon?has_content>

<div id="productdetail_intro">
	<div class='product_img'><IMG src='${coupon.smallImage?default("http://localhost:8080/jubao/IMAGES/COUPON/COUPON_MEDIUM_DEFAULT.JPG")}' style="border: 1px solid rgb(0, 0, 0);" /></div>
	<div class='product_desc'>${coupon.name?default("No-Name")} Store:<A href='<@spring.url "/viewstoredetail.jsp?stosid=${coupon.store.sysId}"/>'>${coupon.store.name?default("No-Name")}</A>
	&nbsp;&nbsp;<A href='<@spring.url "/printcoupondetail.jsp?cpsid=${coupon.sysId}"/>'>Print</A>	
	<br/>BonusValue:${coupon.bonusValue?default(0)}&nbsp;ShortDesc:${coupon.shortDesc?default("No-Short-Desc")}</div>
</div>

<div id='productlist_contents'>
	<#if couponItemList?has_content>
		<#list couponItemList as ci>
			<li>
			<IMG src='<@spring.url "/IMAGES/USER/USER_SMALL_DEFAULT.JPG"/>' height="60" width="60"/>
			<div class='product_desc'>Customer:${ci.user.nickName?default("No-NickName")}<br/>Coupon Item Id: ${ci.id}&nbsp;&nbsp; Register Date:2007-23-23
			<br/>Comment: ${ci.shortDesc?default("")} 			 
			</div>
			</li>
		</#list>								
	</#if>						
</div>

<#if couponItemList?has_content>
	<div id="productlist_pagefooter"><#include "/includes/pagefooter.ftl"></div>
</#if>

<div id="productdetail_description">${coupon.longDesc?default("No-coupon-longDesc")}</div>
<#else>
	Not Found the coupon.
</#if>
<#include "/includes/footer.ftl">